package PenTest;
import java.io.*;
import java.util.*;


/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:周次煜
 * Date: 2024-07-17
 * Time：10:16
 */
public class Soluation3 {
}



// 注意类名必须为 Main, 不要有任何 package xxx 信息
class Main4 {

    /**
     * 题目： 简写单词
     *
     * @param args
     *
     */
    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        String a = in.nextLine();


        StringBuffer str = new StringBuffer();
        str.append(Character.toUpperCase(a.charAt(0)));


        char[]  strs = a.toCharArray();


        // 开始遍历
        for(int i=1; i < strs.length;i++) {
            if(strs[i] == ' ') {
                str.append(Character.toUpperCase(strs[i+1]));
            }
        }

        System.out.println(str.toString());

    }
}



 class Main5 {


     /**
      * 求大于等于目标值的最小长度
      * @param args
      */
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        int n = in.nextInt();
        int x = in.nextInt();

        // 记录起始位置和长度
        int start = 0;
        int len = Integer.MAX_VALUE;

        // 输入
        int[] nums = new int[n];
        for (int i = 0; i < n; i++) {

            nums[i] = in.nextInt();

        }



        // 记录总和
        int sum = 0;
        // 算法
        for (int right = 0, left = 0; right < n ; right++) {
            sum += nums[right];
            while (sum >= x) {
                if (len >= (right - left)) {
                    len =  right - left;
                    start = left;
                }

                sum -= nums[left];
                left++;

            }

        }

        // 输出
        System.out.println(start + " " + (start + len) );

    }
}


class  Main6 {
  public  static   PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
  public  static    Read  in = new Read();
    public static void main(String[] args) throws IOException {
            out.println("hhhh-a");
            int i = in.nextInt();
            out.println(i);
    }



}


class Read // 自定义快速读入
{
    StringTokenizer st = new StringTokenizer("");
    BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
    String next() throws IOException
    {
        while(!st.hasMoreTokens())
        {
            st = new StringTokenizer(bf.readLine());
        }
        return st.nextToken();
    }

    String nextLine() throws IOException
    {
        return bf.readLine();
    }

    int nextInt() throws IOException
    {
        return Integer.parseInt(next());
    }

    long nextLong() throws IOException
    {
        return Long.parseLong(next());
    }

    double nextDouble() throws IOException
    {
        return Double.parseDouble(next());
    }
}


/**
 * 拷贝二维数组
 *
 *
 */

 class ArrayCopyExample {
//    public static void main(String[] args) {
//        int[][] originalArray = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
//
//        // 使用 Arrays.copyOf() 或者 new int[originalArray.length][] 后使用 System.arraycopy()
//        int[][] copiedArray = new int[originalArray.length][];
//
//        for (int i = 0; i < originalArray.length; i++) {
//            copiedArray[i] = new int[originalArray[i].length];
//            System.arraycopy(originalArray[i], 0, copiedArray[i], 0, originalArray[i].length);
//        }
//
//        // 打印原数组和拷贝后的数组以验证
//        printArray(originalArray);
//        printArray(copiedArray);
//
//
//
//    }
//
//    private static void printArray(int[][] array) {
//        for (int[] row : array) {
//            for (int value : row) {
//                System.out.print(value + " ");
//            }
//            System.out.println();
//        }
//    }


    public static void main(String[] args) {
        int[][] array={{1,2},{3,4}};

       int[][] tmp= array.clone();
       tmp[1][1]=100;
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                System.out.print(array[i][j]+" ");
            }
            System.out.println();
        }
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                System.out.print(tmp[i][j]+" ");
            }
            System.out.println();
        }
    }
}